<template>
  <div class="navBox">
    <div>当前金币：{{ store.state.coins }}</div>
    <div class="setting"></div>
    <slot />
  </div>
</template>

<script setup lang="ts">
import { useStore } from 'vuex'

const store = useStore()
</script>

<style scoped>
.navBox {
  display: flex;
  width: 100%;
  padding: 20px 30px;
  height: 80px;
  line-height: 80px;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  background-color: white;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
}

.setting {
  width: 50px;
  height: 50px;
  margin: 0 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}
</style>
